package com.wsl.pojo;

import java.math.BigDecimal;

/**
 * @Author:WangShuliang
 * @Description:
 * @Date:Created in 17:28 2018/1/12
 * @Modified by:
 */
public class TableNum {
    String regexp = "\'";
    /**
     * 表名
     */
    private String tableName;
    /**
     * 条数
     */
    private BigDecimal tableNum;
    /**
     * 数据是否一致
     */
    private String agreement;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName =   tableName.replaceAll(regexp, "");
    }

    public BigDecimal getTableNum() {
        return tableNum;
    }

    public void setTableNum(BigDecimal tableNum) {
        this.tableNum = tableNum;
    }

    public String getAgreement() {
        return agreement;
    }

    public void setAgreement(String agreement) {
        this.agreement = agreement;
    }

    public TableNum(String tableName, BigDecimal tableNum, String agreement) {
        this.tableName = tableName;
        this.tableNum = tableNum;
        this.agreement = agreement;
    }

    public TableNum() {
    }

    @Override
    public String toString() {
        return "TableNum{" +
                "tableName='" + tableName + '\'' +
                ", tableNum=" + tableNum +
                ", agreement='" + agreement + '\'' +
                '}';
    }
}